package com.core.user.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.core.user.dto.UserDto;
import com.core.user.dto.UserSearchCondition;
import com.core.user.pojo.User;
@Repository
public interface UserDao {
	
	User getById(User user);

    void add(User user);

    void update(User user);

    void delete(User user);

    List<User> searchPojo(UserSearchCondition sc);

    List<UserDto> searchDto(UserSearchCondition sc);

    Integer searchCnt(UserSearchCondition sc);

    //======================================= new method create here ====================================/
    User getByUserName(String userName);
}
